package com.gzhu.knowledgeAdmin.controller;

import com.gzhu.knowledgeAdmin.common.result.R;
import com.gzhu.knowledgeAdmin.entity.TPfT;
import com.gzhu.knowledgeAdmin.entity.TPfTXXQ;
import com.gzhu.knowledgeAdmin.service.ScoreManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ScoreManageController {
    @Autowired
    private ScoreManageService scoreManageService;
    @PostMapping("/scoreManage/list")
    public R<List<TPfT>> list(){
        List<TPfT> list=scoreManageService.list();
        return  R.ok(list);
    }
    @PostMapping("/scoreManage/selectByName")
    public R<List<TPfTXXQ>> selectByName(String name){
        List<TPfTXXQ> list=scoreManageService.selectByName(name);
        System.out.println(1);
        return  R.ok(list);
    }

}
